const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  // 配置反向代理
  devServer: {
    // 查询ip
    // port:8080
    // 搜狐:  http://pv.sohu.com/cityjson?ie=utf-8
    proxy: {
      "/ip": {
        target: "http://pv.sohu.com",
        changeOrigin: true,
        pathRewrite: {
          "^/ip": "",
        },
      },
    },
  },
});
